package externalflame.systemdesign.secondkill.service;

import externalflame.systemdesign.secondkill.dto.OrderDto;
import externalflame.systemdesign.secondkill.entity.Order;
import externalflame.systemdesign.secondkill.exception.NoStockException;
import externalflame.systemdesign.secondkill.exception.NoSuchSecKillException;
import externalflame.systemdesign.secondkill.exception.NotValidPeriodException;
import externalflame.systemdesign.secondkill.exception.PerPurchaseLimitException;

public interface OrderService {
    Order add(Long userId, OrderDto orderDto) throws NoStockException, NoSuchSecKillException, PerPurchaseLimitException, NotValidPeriodException;
}
